/**
 * TmProduct.js
 * 
 * @description :: TODO: You might write a short summary of how this model works
 *              and what it represents here.
 * @docs :: http://sailsjs.org/#!documentation/models
 */

module.exports = {

	attributes : {
		
		name : {
			type : 'string',
		},
		
		price : {
			type : 'float',
		},
		
		category : {
			type : 'string',
		},
		
		discount : {
			type : 'float',
			defaultsTo : 1
		},
		
		avator : {
			type : 'string',
		},
		
		number : {
			type : 'integer',
		},
		
		state : {
			type : 'integer',
		}
		
	}
};
